#include "Tree.h"

Tree::Tree(int newX,int newY,int newZ,GLUquadricObj *newP)
{
	this->x = newX;
	this->y = newY;
	this->z = newZ;
	this->p = newP;
	
}

void Tree::DrawHip()
{
	glPushMatrix();
	 glColor3f(0, 0, 0);
	 glTranslatef(this->x,this->y,this->z);
	 //glRotatef(this->Anglecord.angle, this->Anglecord.xAngle,this->Anglecord.yAngle,this->Anglecord.zAngle);
	 gluCylinder(this->p,1,1,4,5,5);
	 glColor3f(0, 1, 0);
	 gluSphere(this->p,2,5,5);
	 glutPostRedisplay();
	glPopMatrix();
}
Tree::~Tree(void)
{
}
